package test.ihm;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;

import orgamenu.ihm.JMenu.JMenuRepas;
import orgamenu.ihm.JMenu.JPanelRepas;

public class JMenuRepasTU extends JFrame {

	private static final long serialVersionUID = 1L;
	private static JPanelRepas panel = null;
	private static JMenuRepas menuRepas= null;
	
	/**
	 * constructeur
	 */
	public JMenuRepasTU() {
		super();
		this.setSize(800, 600);
		menuRepas=new JMenuRepas(1,2);
		
		for ( int i=0;i<4;i++){
			panel=new JPanelRepas("entree","plat","dessert");
			panel.setBorder(new LineBorder(Color.orange, 1));
			menuRepas.add(panel,"wrap");
			
			panel=new JPanelRepas("entree2","plat2","dessert2");
			panel.setBorder(new LineBorder(Color.red, 1));
			menuRepas.add(panel,"wrap");
			
			panel=new JPanelRepas("entree3","plat3","dessert3");
			panel.setBorder(new LineBorder(Color.blue, 1));
			menuRepas.add(panel,"wrap");
		}
		
		this.setContentPane(menuRepas);
		this.setTitle("JCTable");
		
	}
	
	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
//	private JPanel getJContentPane() {
//		if (jContentPane == null) {
//			jContentPane=new JMenuRepas();
//			jContentPane.setBorder(new LineBorder(Color.orange, 1));
//		}
//		return jContentPane;
//	}

}
